<style type="text/css">
    .tablelist td{line-height:26px;}
    .tablelist tbody tr.odd {background:#E3F0FA}
</style>
<form class="form-inline" method="get">
    <div class="form-group col-xs-2">
        <div class="col-xs-12">
            <input class="form-control" name="realname" value="{$realname}"
                   placeholder="用户名或真实姓名">
        </div>
    </div>
    <div class="form-group col-xs-2">
        <div class="col-xs-12">
            <button type="submit" class="btn btn-success">
                确认搜索
            </button>
        </div>
    </div>
</form>
<hr>
<table class="table table-striped">
    <thead>
    <tr>
        <td>编号</td>
        <td>用户名</td>
        <td>真实姓名</td>
        <td>激活币操作</td>
        <td>新增或扣除原因</td>
        <td>备注</td>
        <td>发放时间</td>
    </tr>
    </thead>
    <tbody>
    {volist name="list.data" id="item"}
    <tr>
        <td>{$item.id}</td>
        <td>{$item.uid|get_uname}</td>
        <td>{$item.uid|get_realname}</td>
        <td>
            {if condition="$item['isadd'] eq 1"}+{/if}
            {if condition="$item['isadd'] eq 2"}-{/if}
            {$item.nums}
        </td>
        <td>
            {if condition="$item['fromuid'] eq 0"}系统操作
                {else /}
                用户:{$item.fromuid|get_uname}
            {/if}
        </td>
        <td>
           {$item.info}
        </td>
        <td>
            {$item.ctime|date='Y-m-d H:i:s',###}
        </td>
    </tr>
    {/volist}
    </tbody>
</table>

<div class="row">
    <div class="col-xs-12" style="text-align: right;">
        {$page}
    </div>
</div>
<script src="__PUBLIC__/vendors/select2/js/select2.min.js"></script>
<script type="text/javascript">
    $('.tablelist tbody tr:odd').addClass('odd');
</script>

